package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureMaterialType;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 农资类别业务对象 agriculture_material_type
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureMaterialType.class, reverseConvertGenerate = false)
public class AgricultureMaterialTypeBo extends BaseEntity {

    /**
     * 农资类别ID
     */
    @NotNull(message = "农资类别ID不能为空", groups = { EditGroup.class })
    private Long materialTypeId;

    /**
     * 农资类别名称
     */
    @NotBlank(message = "农资类别名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialTypeName;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
